package br.com.jmed.converters;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;

@FacesConverter("br.com.jmed.converters.PacienteConvenioConverter")
public class PacienteConvenioConverter implements Converter {

	public Object getAsObject(FacesContext context, UIComponent component,
			String value) {
		return new Integer(value);
	}

	public String getAsString(FacesContext context, UIComponent component,
			Object value) {

		return value.toString();
	}

}
